package com.shenmazong.servernewsapi.service;

import com.shenmazong.utils.ResponseResult;
import org.springframework.web.multipart.MultipartFile;

public interface NewsService {
    public ResponseResult addUserNews(Integer userId, Double longitude, Double latitude, Integer serviceType, String Title, String content);
    public ResponseResult delUserNewsById(Integer userId, Integer newsId);
    public ResponseResult setUserNews(Integer userId, Integer newsId, Double longitude, Double latitude, Integer serviceType, String title, String content);
    public ResponseResult getNewsByUserId(Integer userId,Integer pageNo,Integer pageSize);
    public ResponseResult getNewsByTypeId(Integer userId, Integer typeId, Integer pageNo, Integer pageSize);
    public ResponseResult getNewsByCircle(Integer userId, Double longitude, Double latitude, Long distance);
    public ResponseResult getNewsByKeyword(String keyWord);
    public ResponseResult doClickOk(Integer userId, Integer newId);
    public ResponseResult doClickOkQuick(Integer userId, Integer newId);
    public ResponseResult uploadNewsImage(Integer userId, MultipartFile file);
}
